/*@import "./fonts/font.css";*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  /*font-family: "Poppins", sans-serif;*/
}

/* 白色主题 */
:root {
  --main-bg: #32363C;
  --item-bg: #24292c;
  --item-hover-bg: #1f5eff;
  --font-color: #b0b8cc;
  --font-color-hover: white;
  --font-item-color: #717886;
  --border-color: #717886;
  --led-color-green: #00751e;
  --led-color-red: #ce0000;
  --color-orange: #4B3632;
  --transition-time: 0.5s;
  --frame-color: #777675;
}

html {
  height: 100%;
}
body {
  background: var(--main-bg);
  color: var(--font-color);
  overflow: auto;
  height: 100%;
}
div {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: center;
}
img {
  -webkit-user-drag: none;
}
input[type="checkbox"] {
  display: none;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
  color: transparent;
}
canvas {
  border: 2px solid rgb(84, 84, 84);
}
.fa-minus,
.fa-plus {
  cursor: pointer;
}
/* 顶部状态栏 */
.title-box {
  background-color: var(--item-bg);
  display: flex;
  align-items: center;
  padding-left: 20px;
  padding-right: 85%;
  top: 10px;
  position: fixed;
  width: 100%;
  z-index: 40;
  height: 80px;
  justify-content: space-between;
}
.title-box label {
  display: none;
  width: fit-content;
  /* margin-right: 20px; */
  cursor: pointer;
  font-weight: 900;
  font-size: 30px;
  transition: transform 0.5s;
  transform: rotate(0deg);
  color: var(--font-color);
}
/* 底部切换栏 */
.footer {
  position: fixed;
  bottom: 5px;
  width: 100%;
  height: 80px;
  background-color: var(--item-bg);
  z-index: 40;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.nav-list {
  display: flex;
  list-style: none;
  justify-content: center;
  height: 100%;
}
.nav-list li {
  position: relative;
  cursor: pointer;
  padding: 0 10px;
  width: 150px;
  height: 100%;
  transition: all 0.5s;
}
.nav-list li .link:hover {
  background-color: #1d2022;
  border-radius: 5px;
}
.nav-list li .link {
  display: block;
  position: relative;
  top: 10%;
  width: 80%;
  height: 80%;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.5s;
}
.selected {
  background-color: rgb(29, 32, 34);
  border-radius: 5px;
  color: white;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.4), 0 0 0 rgb(29, 32, 34),
    inset -7px -7px 12px rgb(29, 32, 34), inset 7px 7px 12px rgba(0, 0, 0, 0.4);
}
.nav-list li .link .fa {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  font-size: 30px;
  transition: all 0.5s;
}
.nav-list li .link span {
  position: absolute;
  width: 100%;
  bottom: -50%;
  left: 0;
  text-align: center;
  opacity: 0;
  transition: all 0.5s;
  padding: 0;
}
.nav-list li:hover .link span {
  opacity: 1;
  color: white;
  bottom: 5px;
}
.nav-list li:hover .link .fa {
  color: white;
  transform: translateY(-75%);
}
/* 底部切换栏 */

/* 侧边工具栏 */
.left-nav {
  height: calc(100% - 185px);
  top: 95px;
  position: absolute;
  width: 350px;
  background-color: var(--item-bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.left-menu {
  font-size: 18px;
  height: 100%;
  overflow: scroll;
  float: left;
  transition: width 0.5s;
  color: var(--font-color);
}
.left-menu-item {
  border-bottom: 5px solid var(--main-bg);
}
.left-menu-item > input[type="radio"] {
  display: none;
}
.left-menu-item > label {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-align: center;
}
.left-menu-item > label:hover {
  color: var(--font-color-hover);
}

.left-menu-item > label > span {
  flex: 1;
  opacity: 1;
}
.left-menu-item > input:checked ~ .left-menu-content {
  height: fit-content;
}

.left-menu-content {
  height: 0;
  transition: height var(--transition-time);
  display: flex;
  flex-wrap: wrap;
  background-color: var(--main-bg);
  cursor: auto;
  overflow: hidden;
}
.left-menu-content-item {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  border: solid var(--item-bg) 1px;
}

.input-radio,
.input-radio-2,
.input-radio-3 {
  display: none;
}
.left-menu-content > label {
  display: inline-block;
  flex: 1;
  text-align: center;
  height: 35px;
  line-height: 35px;
  background-color: transparent;
  cursor: pointer;
  font-weight: 550;
  font-size: 13px;
  transition: all var(--transition-time);
  border-radius: 0 0 12px 12px;
  padding-left: 5px;
  padding-right: 5px;
}

.left-menu-content > label:hover {
  color: var(--font-color-hover);
}
.left-menu-content ul {
  height: fit-content;
  display: flex;
  list-style: none;
  transition: margin-left var(--transition-time);
  width: 350px;
}

.left-menu-content ul li {
  color: var(--font-color);
  height: fit-content;
  display: none;
  width: 350px;
  margin-top: 10px;
}
.left-menu-content > input:first-child:checked ~ ul > li:first-child,
.left-menu-content > input:nth-child(3):checked ~ ul > li:nth-child(2),
.left-menu-content > input:nth-child(5):checked ~ ul > li:nth-child(3),
.left-menu-content > input:nth-child(7):checked ~ ul > li:nth-child(4) {
  display: inline;
}
.input-radio:checked + label {
  background-color: var(--item-bg);
  color: var(--font-color-hover);
}

.mask-item {
  display: flex;
  justify-content: space-between;
}
.input-radio-item {
  display: block;
  position: relative;
  float: left;
}
.input-radio-item label {
  display: block;
  position: relative;
  font-weight: 300;
  font-size: 15px;
  padding: 5px 5px 5px 25px;
  transition: all 0.25s linear;
  -webkit-transition: all 0.25s linear;
}
.input-radio-item:hover label {
  color: #415da1;
}
.input-radio-item .check {
  border: 3px solid #aaaaaa;
  border-radius: 100%;
  position: absolute;
  top: 5px;
  height: 20px;
  width: 20px;
  transition: border 0.25s linear;
  -webkit-transition: border 0.25s linear;
  margin-right: 10px;
}
.input-radio-item:hover .check {
  border: 3px solid #415da1;
}

.input-radio-item .check::before {
  display: block;
  content: "";
  border-radius: 100%;
  height: 10px;
  width: 10px;
  margin-top: 2px;
  margin-left: 2px;
  transition: background 0.25s linear;
  -webkit-transition: background 0.25s linear;
}
.input-radio-2:checked ~ .check {
  border: 3px solid #415da1;
}

.input-radio-2:checked ~ .check::before {
  background: #415da1;
}

.input-radio-2:checked ~ label {
  color: #415da1;
}

.left-menu-content-item img,
.right-box .right-sub-box .image-box img {
  width: 45px;
  height: 45px;
  margin: 2px;
  cursor: pointer;
}
.left-menu-content-item img:hover,
.right-box .right-sub-box .image-box img:hover {
  border: 2px solid white;
  border-radius: 5px;
}
.left-menu-content-item img:active,
.right-box .right-sub-box .image-box img:active {
  -webkit-transform: translate(2px, 2px);
  transform: translate(2px, 2px);
}
.left-menu-content-item img.checked,
.right-box .right-sub-box .image-box img.checked {
  border: 2px solid red;
  border-radius: 5px;
}

.left-menu-content-item input[type="range"] {
  width: 140px;
  background: #718490;
  border-radius: 8px;
}
.left-menu-content-item input[type="range"]::-moz-range-track {
  height: 4px;
}
.left-menu-content-item input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
}
.left-menu-content-item input[type="range"]::-moz-range-thumb {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: #662222;
  margin-top: -6px;
}
.left-menu-content-item input[type="range"]::-webkit-slider-thumb {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: #662222;
  margin-top: -6px;
}

.left-menu-content-item input[type="number"] {
  width: 50px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 5px;
  box-shadow: none;
  outline: none;
  padding-left: 6px;
  color: white;
}
.left-menu-content-item input[type="number"]:disabled {
  border: 2px solid rgba(118, 118, 118, 0.3);
}

.ip-input::-webkit-inner-spin-button,
.ip-input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

select {
  background: transparent;
  border: 2px solid var(--item-bg);
  border-radius: 5px;
  box-shadow: none;
  outline: none;
  color: white;
  cursor: pointer;
}
.left-menu-content-item select {
  width: 200px;
}
select:focus {
  border: 2px solid white;
}

.select-option {
  background-color: var(--main-bg);
}

.checkbox-label {
  cursor: pointer;
  text-indent: -9999px;
  width: 50px;
  height: 20px;
  background: grey;
  display: block;
  border-radius: 40px;
  position: relative;
}
.checkbox-label::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 8px;
  transition: all var(--transition-time);
}
.left-menu-content-item input[type="checkbox"]:checked + label {
  background: #415da1;
}
.left-menu-content-item input[type="checkbox"]:checked + label::after {
  left: calc(100% - 2px);
  transform: translateX(-100%);
}
.checkbox-label:active::after {
  width: 50px;
}

#sys_time {
  padding: 5px;
  border: 2px solid #fff;
  font-size: 16px;
  width: 220px;
  min-height: 30px;
}
.item-btn {
  background: #3e4047;
  color: #fff;
  border-radius: 10px;
  padding: 2px 5px 2px 5px;
  text-align: center;
  cursor: pointer;
  min-width: 70px;
  margin: 5px;
}

.item-btn:active {
  -webkit-transform: translate(2px, 2px);
  transform: translate(2px, 2px);
}
